﻿<%@ Page Language="C#" MasterPageFile="~/ad/AdminFShop.master" AutoEventWireup="true" CodeFile="EditNews.aspx.cs" Inherits="EditNews" Title="Untitled Page" %>

<%@ Register Assembly="Winthusiasm.HtmlEditor" Namespace="Winthusiasm.HtmlEditor"
    TagPrefix="cc1" %>
    
<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table style="width: 100%">
    <tr>
	   <td align="right"
            style="padding: 10px; height: 21px; text-align: center; font-family: TAhoma; font-size: 20px; background-color: #808080; color: #FFFFFF; width: 100%;" 
            id="Tieude">	        	    
	       THÊM MỚI TIN TỨC
        </td>        
	</tr>
</table>
<br />
<table style="width: 100%">
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Danh mục :</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="Cate_Name" 
                    DataValueField="Cate_ID" Width="76%">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT * FROM [Category] WHERE ([Cate_Status] = @Cate_Status)">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="True" Name="Cate_Status" Type="Boolean" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Tiêu đề :</td>
            <td>
                    <input id="txtPro_Name" runat="server" class="input" type="text" style="width: 76%; color:Black;" /><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPro_Name"
                            ErrorMessage="Tên bài viết không được trống"></asp:RequiredFieldValidator>
                        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                            TargetControlID="RequiredFieldValidator1" WarningIconImageUrl="Images/missValue.png">
                        </ajaxToolkit:ValidatorCalloutExtender>
                        </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Hinh đại điện :</td>
            <td>
                         <asp:FileUpload ID="FileUpload1" runat="server" Width="76%" />
                <br />
                <br />
                         <asp:Image ID="Image1" runat="server" Height="150px" Width="200px" 
                             ImageUrl="~/images/ico/no_image.jpg" />
                         </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Tóm tắt :</td>
            <td>
                <dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" Height="300px" 
                    Width="76%">
                </dx:ASPxHtmlEditor>
                <br />
                         
                     </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Nội dung :</td>
            <td>
                <br />
                <dx:ASPxHtmlEditor ID="ASPxHtmlEditor2" runat="server" Height="500px" 
                    Width="76%">
                </dx:ASPxHtmlEditor>
                <br />
                     </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                Nguồn :</td>
            <td>
                         <input id="txtSource" runat="server" class="input" type="text" style="width: 76%; color:Black;" /></td>
        </tr>
        <tr>
            <td style="width: 40px; height: 18px">
            </td>
            <td style="height: 18px; width: 85px">
            </td>
            <td style="height: 18px">
            </td>
        </tr>
        <tr>
            <td style="width: 40px">
                &nbsp;</td>
            <td style="width: 85px">
                &nbsp;</td>
            <td>
                        <input type="button" value="Quay lại" id="btnBack" onclick="javascript:history.back(1);"  /><input type="submit" value="Thêm" runat="server" id="btnAdd" onserverclick="btnAdd_Click" style="width: 73px"  onclick="return btnAdd_onclick()" /><input type="submit" value="Sửa" runat="server" id="btnEdit" onserverclick="btnEdit_Click" style="width: 73px"  /><asp:Button 
                            ID="Button1" runat="server" onclick="Button1_Click" Text="Làm mới" />
            </td>
        </tr>
    </table>
</asp:Content>

